SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 60270: PROC GLIMMIX might compute incorrect least squares means when an EFFECT statement is used and the AT= option is specified in the LSMEANS statement

DetailsAboutRate It

PROC GLIMMIX produces incorrect least squares means when

  • the MODEL statement includes a constructed effect defined in an EFFECT statement,
  • more than one effect is specified in an LSMEANS statement, and
  • the AT option is specified in the LSMEANS statement

The following code illustrates the combination of statements and options that cause the problem:

proc glimmix;
  class A B sub;
  effect spl = spline(x);
  model y = A B A*spl;
  random A*B / subject=sub;
  lsmeans A|B / at x=10;
run;

To circumvent the problem, specify a single effect in the LSMEANS statement when using the AT= option:

proc glimmix;
  class A B sub;
  effect spl = spline(x);
  model y = A B A*spl;
  random A*B / subject=sub;
  lsmeans A / at x=10;
  lsmeans B / at x=10;
  lsmeans A*B / at x=10;
run;
 

Another circumvention is to use the PLM procedure for computing the LSMEANS:

proc glimmix;
  class A B sub;
  effect spl = spline(x);
  model y = A B A*spl;
  random A*B / subject=sub;
  store sasuser.glimmix;
run;
proc plm restore=sasuser.glimmix;
  lsmeans A|B / at x=10;
run;


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/STATz/OS14.114.39.4 TS1M39.4 TS1M5
z/OS 64-bit14.114.39.4 TS1M39.4 TS1M5
Microsoft® Windows® for x6414.114.39.4 TS1M39.4 TS1M5
Microsoft Windows 8 Enterprise 32-bit14.114.39.4 TS1M39.4 TS1M5
Microsoft Windows 8 Enterprise x6414.114.39.4 TS1M39.4 TS1M5
Microsoft Windows 8 Pro 32-bit14.114.39.4 TS1M39.4 TS1M5
Microsoft Windows 8 Pro x6414.114.39.4 TS1M39.4 TS1M5
Microsoft Windows 8.1 Enterprise 32-bit14.114.39.4 TS1M39.4 TS1M5
Microsoft Windows 8.1 Enterprise x6414.114.39.4 TS1M39.4 TS1M5
Microsoft Windows 8.1 Pro 32-bit14.114.39.4 TS1M39.4 TS1M5
Microsoft Windows 8.1 Pro x6414.114.39.4 TS1M39.4 TS1M5
Microsoft Windows 1014.114.39.4 TS1M39.4 TS1M5
Microsoft Windows Server 200814.19.4 TS1M3
Microsoft Windows Server 2008 R214.19.4 TS1M3
Microsoft Windows Server 2008 for x6414.19.4 TS1M3
Microsoft Windows Server 2012 Datacenter14.114.39.4 TS1M39.4 TS1M5
Microsoft Windows Server 2012 R2 Datacenter14.114.39.4 TS1M39.4 TS1M5
Microsoft Windows Server 2012 R2 Std14.114.39.4 TS1M39.4 TS1M5
Microsoft Windows Server 2012 Std14.114.39.4 TS1M39.4 TS1M5
Windows 7 Enterprise 32 bit14.114.39.4 TS1M39.4 TS1M5
Windows 7 Enterprise x6414.114.39.4 TS1M39.4 TS1M5
Windows 7 Home Premium 32 bit14.114.39.4 TS1M39.4 TS1M5
Windows 7 Home Premium x6414.114.39.4 TS1M39.4 TS1M5
Windows 7 Professional 32 bit14.114.39.4 TS1M39.4 TS1M5
Windows 7 Professional x6414.114.39.4 TS1M39.4 TS1M5
Windows 7 Ultimate 32 bit14.114.39.4 TS1M39.4 TS1M5
Windows 7 Ultimate x6414.114.39.4 TS1M39.4 TS1M5
64-bit Enabled AIX14.114.39.4 TS1M39.4 TS1M5
64-bit Enabled Solaris14.114.39.4 TS1M39.4 TS1M5
HP-UX IPF14.114.39.4 TS1M39.4 TS1M5
Linux for x6414.114.39.4 TS1M39.4 TS1M5
Solaris for x6414.114.39.4 TS1M39.4 TS1M5
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.